package com.bocai.controller;

import com.bocai.service.IOrderService;
import com.bocai.utils.ResponseData;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by jyf on 18/4/19.
 */
@Controller
@RequestMapping("fundManagement")
public class FundManagementController {

    @Autowired
    private IOrderService orderService;

    @ApiOperation(value = "提现总额 奖励账户消耗", notes = "提现总额 奖励账户消耗")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "userId", dataType = "integer", value = "后台用户Id", defaultValue = "1"),
    })
    @RequestMapping(value = "/findFundManagement", method = RequestMethod.GET)
    @ResponseBody
    public ResponseData findFundManagement(Integer userId) {
        ResponseData data = new ResponseData();
        orderService.selectAllMoneyNum(userId, data);
        return data;
    }
}
